<?php
	drupal_set_title('');
	$url = $config->getVar('url');
	
	echo '
	<div id="tabs-wrapper" class="clear-block">
		<h2 class="with-tabs">Administrer</h2>
		<ul class="tabs primary">
			<li>
				<a href="'.$url.'/bdbdec.php?action=addBook">Ajouter un album</a>
			</li>
			<li class="active">
				<a class="active" href="'.$url.'/bdbdec.php?action=changeBook">Modifier un album</a>
			</li>
		</ul>
	</div>
	<div class="infos">
		Plusieurs albums correspondent &agrave; cette cotation, veuillez choisir le bon : 
	</div> 
	<form action="'.$url.'/bdbdec.php?action=changeBookStep3" method="post" class="formNewAlbum">
		<fieldset>
			<legend>Choisir l\'album</legend>
			<select name="bookId">';
			foreach($listAlbum as $album)
				echo '<option value="'.$album['id'].'">Cotation : '.$album['cotation'].', &eacute;tat : '.$album['condition'].', emplacement : '.$album['location'].'</option>';
			echo '	
			</select>
			<input type="hidden" value="true" name="postById" />
			<input type="submit" value="Envoyer" />
		</fieldset>
	</form>';
?>
